
package com.jf.cloud.api.feign;

import com.jf.cloud.common.feign.FeignInsideAuthConfig;
import com.jf.cloud.common.response.ServerResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * 搜索符合定时任务条件的订单
 * @author zz
 * @date 2021/02/05
 */
@FeignClient(value = "jfcloud-search",contextId = "searchOrderTask")
public interface SearchOrderTaskFeignClient {
    /**
     * 订单结算
     * @return
     */
    @PostMapping(value = FeignInsideAuthConfig.FEIGN_INSIDER_URL_PREFIX + "/searchOrderTask/settledOrder")
    ServerResponseEntity settledOrder();

    /**
     * 确认收货
     * @return
     */
    @PostMapping(value = FeignInsideAuthConfig.FEIGN_INSIDER_URL_PREFIX + "/searchOrderTask/confirmOrder")
    ServerResponseEntity confirmOrder();

    /**
     * 预售订单，尾款时间开始时尾款金额为0的处理
     * @return
     */
    @PostMapping(value = FeignInsideAuthConfig.FEIGN_INSIDER_URL_PREFIX + "/searchOrderTask/handlerBalanceTimeStartOrder")
    ServerResponseEntity handlerBalanceTimeStartOrder();

    /**
     * 预售订单，尾款时间过期未支付时的处理
     * @return
     */
    @PostMapping(value = FeignInsideAuthConfig.FEIGN_INSIDER_URL_PREFIX + "/searchOrderTask/handleBalanceTimeExpireOrder")
    ServerResponseEntity handleBalanceTimeExpireOrder();


    /**
     * 采购订单，过期未支付时的处理
     * @return
     */
    @PostMapping(value = FeignInsideAuthConfig.FEIGN_INSIDER_URL_PREFIX + "/searchOrderTask/checkPurchaseOrderPayStatus")
    ServerResponseEntity checkPurchaseOrderPayStatus();
}
